<?php
declare(strict_types=1);

use Phinx\Db\Adapter\MysqlAdapter;
use Phinx\Migration\AbstractMigration;

final class ModifyColumnRemarkInMessageTaskConfirmTable extends AbstractMigration
{
    public function up()
    {
        $this->table("message_task_confirm")
            ->changeColumn("remark", "text", ['limit' => MysqlAdapter::TEXT_LONG, 'comment' => '备注'])
            ->save();
    }

    public function down()
    {
        $this->table("message_task_confirm")
            ->changeColumn("remark", "char", ['default' => '', 'limit' => 200, 'comment' => '备注'])
            ->save();
    }
}
